.viking-upload-component {
  .viking-upload-input {
    display: inline-block;
    cursor: pointer;
  }

  .viking-file-input {
    display: none;
  }

  .viking-upload-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }

  .viking-upload-list-item {
    transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 5px;
    box-sizing: border-box;
    border-radius: 4px;
    min-width: 200px;
    position: relative;

    &:first-child {
      margin-top: 10px;
    }

    .file-name {
      margin-left: 5px;
      margin-right: 40px;

      svg {
        margin-right: 5px;
        color: $gray-500;
      }
    }

    .file-name-uploading {
      color: $primary;
    }

    .file-name-success {
      color: $success;
    }

    .file-name-error {
      color: $danger;
    }

    .file-status {
      display: block;
      position: absolute;
      right: 5px;
      top: 0;
      line-height: inherit;
    }

    .file-actions {
      display: none;
      position: absolute;
      right: 5px;
      top: 0;
      line-height: inherit;
      cursor: pointer;

      &:hover {
        color: $danger;
      }
    }

    &:hover {
      background-color: $gray-200;

      .file-status {
        display: none;
      }

      .file-actions {
        display: block;
      }
    }
  }
}

.viking-uploader-dragger {
  background: $gray-100;
  border: 1px dashed $gray-300;
  border-radius: 4px;
  cursor: pointer;
  padding: 20px;
  width: 360px;
  height: 180px;
  text-align: center;

  &:hover,
  &.is-dragover {
    border: 1px dashed $primary;
  }

  &.is-dragover {
    background: rgba($primary, 0.08);
  }
}
